package com.ruoyi.qymlxin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qymlxin.mapper.IOrderMapper;
import com.ruoyi.qymlxin.domain.IOrder;
import com.ruoyi.qymlxin.service.IIOrderService;

/**
 * 订单Service业务层处理
 * 
 * @author qymlxin
 * @date 2022-05-03
 */
@Service
public class IOrderServiceImpl implements IIOrderService 
{
    @Autowired
    private IOrderMapper iOrderMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public IOrder selectIOrderById(Long id)
    {
        return iOrderMapper.selectIOrderById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param iOrder 订单
     * @return 订单
     */
    @Override
    public List<IOrder> selectIOrderList(IOrder iOrder)
    {
        return iOrderMapper.selectIOrderList(iOrder);
    }

    /**
     * 新增订单
     * 
     * @param iOrder 订单
     * @return 结果
     */
    @Override
    public int insertIOrder(IOrder iOrder)
    {
        return iOrderMapper.insertIOrder(iOrder);
    }

    /**
     * 修改订单
     * 
     * @param iOrder 订单
     * @return 结果
     */
    @Override
    public int updateIOrder(IOrder iOrder)
    {
        return iOrderMapper.updateIOrder(iOrder);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteIOrderByIds(Long[] ids)
    {
        return iOrderMapper.deleteIOrderByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteIOrderById(Long id)
    {
        return iOrderMapper.deleteIOrderById(id);
    }
}
